﻿using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	 	//ServerWeb
		public class ServerWeb
	{
   		#region ServerWeb
		/// <summary>
		/// 
		/// </summary>
		public ServerWeb()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public ServerWeb(Int32 id)
		{
			this._id = id;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public ServerWeb(DataRow dr)
		{
	            this._weburl = Convert.ToString(dr["WebUrl"]);
                int.TryParse(Convert.ToString(dr["ID"]),out _id);
                if(dr["LastTime"] != DBNull.Value)
			        this._lasttime = Convert.ToDateTime(dr["LastTime"]);
                this._stater = Convert.ToInt32(dr["StateR"]);
                this._spider = Convert.ToString(dr["spider"]);
        			
		}
		#endregion
		
      	#region WebUrl
		/// <summary>
		/// WebUrl
        /// </summary>		
                private string _weburl;
        public string WebUrl
                {
            get{ return _weburl; }
            set{ _weburl = value; }
        }
        #endregion
        #region ID
		/// <summary>
		/// ID
        /// </summary>		
                private int _id;
        public int ID
                {
            get{ return _id; }
            set{ _id = value; }
        }
        #endregion
        #region LastTime
		/// <summary>
		/// LastTime
        /// </summary>		
                private DateTime _lasttime;
        public DateTime LastTime
                {
            get{ return _lasttime; }
            set{ _lasttime = value; }
        }
        #endregion
        #region StateR
		/// <summary>
		/// StateR
        /// </summary>		
                private int _stater;
        public int StateR
                {
            get{ return _stater; }
            set{ _stater = value; }
        }
        #endregion
        #region spider
		/// <summary>
		/// spider
        /// </summary>		
                private string _spider;
        public string spider
                {
            get{ return _spider; }
            set{ _spider = value; }
        }
        #endregion
        	}
}